<?php
/**
 * Describe:
 * Source:
 * User: blue
 * Time: 2018/3/18 18:23
 */

namespace app\admin\validate;


use think\Validate;

class Member extends Validate
{
    //验证规则
    protected $rule=[
        // 'mname'=>'require|email|token|length:10,15'
        'mname'=>'require|email|token|length:7,50'
    ];
    //验证信息
    protected $message=[
        'mname.require'=>'用户名必须填写',
        'mname.email'=>'用户名必须为邮箱',
        'mname.length'=>'用户名长度不符合标准'
    ];
    //验证场景
    protected $scene=[
        'delete'=>['id']
    ];
}